/*************************************************************************
 *************************************************************************
 	 	 	 	 	 	 	M2SMA : DWGameAgent.h
 *************************************************************************
 *
 	 Copyright (C) 2011
 	 DW-2011, Steven Costiou, France
 *
 **************************************************************************
 **************************************************************************
 *
	The DW game agent manages the game initialization & in-game rules
	and handles game-related events.
 *
 **************************************************************************
 **************************************************************************
 *
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/
 *
 **************************************************************************
 **************************************************************************/

#ifndef DWGAMEAGENT_H_
#define DWGAMEAGENT_H_

#include <libconfig.h++>

#include "Agent.h"

using namespace libconfig;

#define _DW_INIT_ "dw.ini"
#define _DW_CFG_ "dw.cfg"

class DWGameAgent : public Agent
{
	public:

		DWGameAgent(Engine* anEngine);
		~DWGameAgent();

		DWGameAgent(const DWGameAgent& aDWGameAgent);

		virtual void live();

		/**
		 * GAME AGENT EVENT HANDLER INTERFACES
		 */

		/**
		 * GAME AGENT SERVICES INTERFACES
		 */

	protected:

		virtual void selfCopyFrom(const DWGameAgent& anAgent, Engine* anEngine);
		virtual bool isEqualTo(const DWGameAgent& anAgent) const;

	private:

		void initialize();
		void initializeGame();

	private:

};

#endif /* DWGAMEAGENT_H_ */
